<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<ul>
<c:if test="${param.limit==1}">
	<c:set var="company" value="${companys[0]}"></c:set>
	<li style="margin-top:0px;padding-top:3px;height:auto;">
	  <a style="margin-top:0px;padding-top:0px;font-size:13px;" class="compaHref" href="company.html?method=showCompany&id=${company.id}">${fn:substring(company.cname,0,10)}</a>
	  <div style="line-height:15px;padding:5px 0px;">${fn:substring(company.cdesc, 0, 60)}${fn:length(company.cdesc)>60?'...':''}</div>
	</li>
</c:if>
<c:if test="${param.limit != '1'}">
<li></li>
	<c:forEach items="${companys}" var="company" varStatus="vs">
	  <li style="margin-top:0px;padding-top:3px;height:70px;overflow:hidden;">
	  <a  style="margin-top:0px;padding-top:0px;font-size:13px;" class="compaHref" href="company.html?method=showCompany&id=${company.id}">${fn:substring(company.cname,0,10)}</a>
	  （网友评分：${company.cscore}分）共有${company.commentCount}条评论
	  <p>${fn:substring(company.cdesc, 0, 54)}${fn:length(company.cdesc)>54?'...':''}</p>
	  </li>
	  <c:if test="${fn:length(companys) != vs.count}">
	  <li style="margin:0px;padding:0px;"><hr style="border:0px;border-top:1px dotted #E9EFF6;height:1px;"/></li>
	  </c:if>
	</c:forEach>
</c:if>
</ul>

